package cn.yuanqiao.manage.mapper;/**
 * @author 赵常飞
 * @date 2024/1/24 16:57
 */

import cn.yuanqiao.manage.domain.YqdaGdfwAndBgqx;
import cn.yuanqiao.manage.domain.YqdaGdfwAndBgqxRule;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *@Author: 赵常飞
 *@Date: 2024/1/24 16:57
 *@Description:
 *@Note:
 */

public interface GdfwAndBgqxMapper {

    List<YqdaGdfwAndBgqx> getTreeListfirst(@Param("categoryId")Long categoryId);

    List<YqdaGdfwAndBgqx> getchildrens(@Param("id") Long id,@Param("categoryId")Long categoryId);

    Integer addzd(YqdaGdfwAndBgqx gdfwAndBgqx);

    Integer editzd(YqdaGdfwAndBgqx gdfwAndBgqx);

    List<YqdaGdfwAndBgqx> gettable(@Param("parentId")Long parentId,@Param("categoryId")Long categoryId);

    Integer addtj(YqdaGdfwAndBgqxRule gdfwAndBgqxrule);

    Integer edittj(YqdaGdfwAndBgqxRule gdfwAndBgqxrule);

    List<Map<String,Object>> gettjtable(@Param("zdId")Long zdId,@Param("type")Integer type);

    YqdaGdfwAndBgqx getzd(@Param("zdId")Long zdid);

    int delete(Long tjid);
}
